﻿@model PhotoGallery.Models.ViewModels.AlbumViewModel
@using PhotoGallery.Views

@{
    ViewBag.Title = "Details";
}

<h2>@Labels.info</h2>

<fieldset>
    <legend>@Labels.album</legend>
    <div style="float:left; width:200px">
        @if (String.IsNullOrEmpty(Model.Album.FileName))
        {
            <img alt="" src="@Url.Content("~//Content//empty_album.png")" class="thumbnail-border" width="180" height="180" />
        }
        else
        {
            <img alt="@Model.Album.Title" src="@Url.Action("Thumbnail", new { file = Model.Album.FullFileName })" />
        }
    </div>
    <div>
        <div class="display-label">
             @Html.DisplayNameFor(model => model.Album.Title)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Album.Title)
        </div>

        @*<div class="display-label">
             @Html.DisplayNameFor(model => model.FileName)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.FileName)
        </div>*@

        <div class="display-label">
             @Html.DisplayNameFor(model => model.Album.CreateDate)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Album.CreateDate)
        </div>

    </div>
</fieldset>
<p>
    @Html.ActionLink(Labels.edit, "Edit", new { id=Model.Album.ID }) |
    @*@Html.ActionLink(Labels.back, "Index")*@
    <a href="@Html.Encode(Request.UrlReferrer.ToString())" >@Labels.back </a>
</p>
